package com.hsjk.szwj.module.train.convert;

import com.hsjk.szwj.framework.common.pojo.PageResult;
import com.hsjk.szwj.module.train.api.dto.StudentInfoDTO;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminStudentPageRespVO;
import com.hsjk.szwj.module.train.dal.dataobject.student.StudentInfoDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/09/05 00:01
 **/
@Mapper
public interface StudentConvert {
    StudentConvert INSTANCE = Mappers.getMapper(StudentConvert.class);

    StudentInfoDO convertStudentInfoDO(StudentInfoDTO dto);

    PageResult<AdminStudentPageRespVO> convertAdminStudentPageRespVO(PageResult<StudentInfoDO> studentInfoDOPageResult);
}
